<template>
  <div class="avue-logo">
    <transition name="fade">
      <span v-if="keyCollapse" class="avue-logo_subtitle" key="0">
        {{ website.logo }}
      </span>
    </transition>
    <div class="company_title">
      <img class="img" style="width: 32px;height: 32px;margin-right: 10px;" src="/img/ruoyi.jpg" alt="">
      <span style="font-style: italic;">{{ website.indexTitle }}</span>
    </div>
    <!-- <transition-group name="fade">
      <template v-if="!keyCollapse">
        <span class="avue-logo_title" key="1">{{ website.indexTitle }} </span>
      </template>
</transition-group> -->
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  name: "logo",
  data() {
    return {};
  },
  created() { },
  computed: {
    ...mapGetters(["keyCollapse"])
  },
  methods: {}
};
</script>

<style lang="scss">
.fade-leave-active {
  transition: opacity 0.2s;
}

.fade-enter-active {
  transition: opacity 2.5s;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

.avue-logo {
  height: 64px;
  line-height: 64px;
  background-color: #20222a;
  font-size: 20px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.8);

  &_title {
    display: block;
    text-align: center;
    font-weight: 300;
    font-size: 20px;
  }

  &_subtitle {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
  }
}

.company_title {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin: 10px 5%;
  color: rgba(246, 202, 157, 0.7);

}
</style>